#include <REGX52.H>
#include "LCD1602.h"
#include "DS1302.h"

void main()
{
	LCD_Init();
	DS1302_Init();
	LCD_ShowString(1,3,"-  -");
	LCD_ShowString(2,3,":  :");
	Set_Time();
	while(1)
	{
		Read_Time();
		LCD_ShowNum(1,1,DS_1302_TIME[0],2);	
		LCD_ShowNum(1,4,DS_1302_TIME[1],2);	
		LCD_ShowNum(1,7,DS_1302_TIME[2],2);	
		LCD_ShowNum(2,1,DS_1302_TIME[3],2);	
		LCD_ShowNum(2,4,DS_1302_TIME[4],2);	
		LCD_ShowNum(2,7,DS_1302_TIME[5],2);	
	}
}